﻿namespace JMDict.ObjectModel
{
    using System;
    using System.Collections.Generic;
    using System.Diagnostics.CodeAnalysis;
    using System.Xml.Serialization;

    /// <summary>
    /// The JMdict (Japanese-Multilingual Dictionary).
    /// </summary>
    [XmlRoot("JMdict")]
    public class Dictionary
    {
        /// <summary>
        /// Gets or sets the Entries. 
        /// </summary>
        /// <remarks>
        /// Entries consist of kanji elements, reading elements, 
        /// general information and sense elements. Each entry must have at 
        /// least one reading element and one sense element. Others are optional.
        /// </remarks>
        [XmlElement("entry")]
        public List<Entry> Entries
        {
            get;
            set;
        }
    }
}